package com.quick.develop.flowable.domain.rule;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Set;

@TableName(value = "bpm_example_rule", autoResultMap = true)
@NoArgsConstructor
@AllArgsConstructor
@Data
public class BpmExampleRule {
    private static final long serialVersionUID = 6049447800479286831L;
    /**
     * 主键
     */
    @TableId(value="id",type = IdType.AUTO)
    private Long id;
    /**
     * 模型KEY
     */
    private String modelKey;

    /**
     * 节点编码
     */
    private String nodeCode;


    /**
     * 流程实例id
     */
    private String procInstId;

    /**
     * 业务id
     */
    private String businessKey;

    /**
     * 人员值
     */
    @TableField(typeHandler = JacksonTypeHandler.class, updateStrategy = FieldStrategy.IGNORED)
    private Set<String> optionsPersonnel;


    /**
     * 部门值
     */
    @TableField(typeHandler = JacksonTypeHandler.class, updateStrategy = FieldStrategy.IGNORED)
    private Set<String> optionsDept;


    /**
     * 角色值
     */
    @TableField(typeHandler = JacksonTypeHandler.class, updateStrategy = FieldStrategy.IGNORED)
    private Set<String> optionsRole;

}
